
package com.scalar.chiptrack.events;

import java.util.LinkedList;

//Balaram, Jun 23 2005
public class SSEventList extends LinkedList
{
    private SSEventType mEventType = null;

    public SSEventList( SSEventType type )
    {
        mEventType = type;
    }

    public boolean add( Object obj )
    {
        return false;
    }

    public boolean add( SSEvent event )
    {
        if( ( event == null ) || ( event.getType().equals( mEventType.toString() ) == false ) )
        {
            return false;
        }

        return super.add( event );
    }


    public String getEventType()
    {
        return mEventType.toString();
    }

}

